Integrand size = 19, antiderivative size = 79 \[ \int (a+b x)^m (c+d x)^{-3-m} \, dx=\frac {(a+b x)^{1+m} (c+d x)^{-2-m}}{(b c-a d) (2+m)}+\frac {b (a+b x)^{1+m} (c+d x)^{-1-m}}{(b c-a d)^2 (1+m) (2+m)} \]
[Out]
Time = 0.01 (sec) , antiderivative size = 79, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {47, 37} \[ \int (a+b x)^m (c+d x)^{-3-m} \, dx=\frac {(a+b x)^{m+1} (c+d x)^{-m-2}}{(m+2) (b c-a d)}+\frac {b (a+b x)^{m+1} (c+d x)^{-m-1}}{(m+1) (m+2) (b c-a d)^2} \]
[In]
[Out]
Rule 37
Rule 47
Rubi steps \begin{align*} \text {integral}& = \frac {(a+b x)^{1+m} (c+d x)^{-2-m}}{(b c-a d) (2+m)}+\frac {b \int (a+b x)^m (c+d x)^{-2-m} \, dx}{(b c-a d) (2+m)} \\ & = \frac {(a+b x)^{1+m} (c+d x)^{-2-m}}{(b c-a d) (2+m)}+\frac {b (a+b x)^{1+m} (c+d x)^{-1-m}}{(b c-a d)^2 (1+m) (2+m)} \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 59, normalized size of antiderivative = 0.75 \[ \int (a+b x)^m (c+d x)^{-3-m} \, dx=\frac {(a+b x)^{1+m} (c+d x)^{-2-m} (-a d (1+m)+b c (2+m)+b d x)}{(b c-a d)^2 (1+m) (2+m)} \]
[In]
[Out]
Time = 1.58 (sec) , antiderivative size = 124, normalized size of antiderivative = 1.57
method | result | size |
gosper | \(-\frac {\left (b x +a \right )^{1+m} \left (d x +c \right )^{-2-m} \left (a d m -b c m -b d x +a d -2 b c \right )}{a^{2} d^{2} m^{2}-2 a b c d \,m^{2}+b^{2} c^{2} m^{2}+3 a^{2} d^{2} m -6 a b c d m +3 b^{2} c^{2} m +2 a^{2} d^{2}-4 a b c d +2 b^{2} c^{2}}\) | \(124\) |
parallelrisch | \(\frac {x^{3} \left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} b^{3} d^{3}-x^{2} \left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} a \,b^{2} d^{3} m +x^{2} \left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} b^{3} c \,d^{2} m +3 x^{2} \left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} b^{3} c \,d^{2}-x \left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} a^{2} b \,d^{3} m +x \left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} b^{3} c^{2} d m -x \left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} a^{2} b \,d^{3}+2 x \left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} a \,b^{2} c \,d^{2}+2 x \left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} b^{3} c^{2} d -\left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} a^{2} b c \,d^{2} m +\left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} a \,b^{2} c^{2} d m -\left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} a^{2} b c \,d^{2}+2 \left (b x +a \right )^{m} \left (d x +c \right )^{-3-m} a \,b^{2} c^{2} d}{b d \left (a^{2} d^{2} m^{2}-2 a b c d \,m^{2}+b^{2} c^{2} m^{2}+3 a^{2} d^{2} m -6 a b c d m +3 b^{2} c^{2} m +2 a^{2} d^{2}-4 a b c d +2 b^{2} c^{2}\right )}\) | \(462\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 205 vs. \(2 (79) = 158\).
Time = 0.24 (sec) , antiderivative size = 205, normalized size of antiderivative = 2.59 \[ \int (a+b x)^m (c+d x)^{-3-m} \, dx=\frac {{\left (b^{2} d^{2} x^{3} + 2 \, a b c^{2} - a^{2} c d + {\left (3 \, b^{2} c d + {\left (b^{2} c d - a b d^{2}\right )} m\right )} x^{2} + {\left (a b c^{2} - a^{2} c d\right )} m + {\left (2 \, b^{2} c^{2} + 2 \, a b c d - a^{2} d^{2} + {\left (b^{2} c^{2} - a^{2} d^{2}\right )} m\right )} x\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{-m - 3}}{2 \, b^{2} c^{2} - 4 \, a b c d + 2 \, a^{2} d^{2} + {\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} m^{2} + 3 \, {\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} m} \]
[In]
[Out]
Exception generated. \[ \int (a+b x)^m (c+d x)^{-3-m} \, dx=\text {Exception raised: HeuristicGCDFailed} \]
[In]
[Out]
\[ \int (a+b x)^m (c+d x)^{-3-m} \, dx=\int { {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{-m - 3} \,d x } \]
[In]
[Out]
\[ \int (a+b x)^m (c+d x)^{-3-m} \, dx=\int { {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{-m - 3} \,d x } \]
[In]
[Out]
Time = 3.07 (sec) , antiderivative size = 214, normalized size of antiderivative = 2.71 \[ \int (a+b x)^m (c+d x)^{-3-m} \, dx=\frac {\frac {x\,{\left (a+b\,x\right )}^m\,\left (2\,b^2\,c^2-a^2\,d^2-a^2\,d^2\,m+b^2\,c^2\,m+2\,a\,b\,c\,d\right )}{{\left (a\,d-b\,c\right )}^2\,\left (m^2+3\,m+2\right )}-\frac {a\,c\,{\left (a+b\,x\right )}^m\,\left (a\,d-2\,b\,c+a\,d\,m-b\,c\,m\right )}{{\left (a\,d-b\,c\right )}^2\,\left (m^2+3\,m+2\right )}+\frac {b^2\,d^2\,x^3\,{\left (a+b\,x\right )}^m}{{\left (a\,d-b\,c\right )}^2\,\left (m^2+3\,m+2\right )}+\frac {b\,d\,x^2\,{\left (a+b\,x\right )}^m\,\left (3\,b\,c-a\,d\,m+b\,c\,m\right )}{{\left (a\,d-b\,c\right )}^2\,\left (m^2+3\,m+2\right )}}{{\left (c+d\,x\right )}^{m+3}} \]
[In]
[Out]